package com.willren;

import java.lang.reflect.Method;

import android.app.Activity;
import android.content.Context;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.util.Log;
import android.widget.EditText;

public class TestWifiManagerActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        StringBuffer sb = new StringBuffer();
        
        WifiManager objWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
        if (null != objWifiManager) {
	        Class<?> clsWifiManager = objWifiManager.getClass();
	        if (null != clsWifiManager) {
	        	Method ms[] = clsWifiManager.getMethods();
				for (Method m : ms) {
					sb.append(m.toString());
					sb.append("\n");
				}
	        }
        }
        
        EditText editText = (EditText) findViewById(R.id.editText1);
        if (null != editText) {
        	editText.setText(sb.toString());
        }
    }
}